package com.shanzmoo.db.personnel.service;

import com.shanzmoo.base.bean.PageRespBase;
import com.shanzmoo.base.bean.SResponse;
import com.shanzmoo.db.personnel.entity.MemberInfoEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shanzmoo.db.personnel.entity.dto.MemberInfoQueryDto;
import com.shanzmoo.db.personnel.entity.dto.MemberInfoSaveDto;
import com.shanzmoo.db.personnel.entity.dto.MemberInfoUpdateDto;
import com.shanzmoo.db.personnel.entity.vo.MallMemberInfoVo;
import com.shanzmoo.db.personnel.entity.vo.MemberInfoPageVo;
import com.shanzmoo.db.personnel.entity.vo.MemberInfoVo;
import com.shanzmoo.db.personnel.entity.vo.MemberSelectVo;

import java.util.List;

/**
 * <p>
 * 会员信息 服务类
 * </p>
 *
 * @author Gzhao
 * @since 2020-12-14
 */
public interface IMemberInfoService extends IService<MemberInfoEntity> {

    SResponse<List<MemberSelectVo>> getSelectList();

    SResponse<Boolean> add(MemberInfoSaveDto saveDto);

    SResponse<PageRespBase<MemberInfoPageVo>> getPageList(MemberInfoQueryDto queryDto);

    SResponse<MemberInfoVo> getInfo(Integer id);

    SResponse<MemberInfoVo> getInfoErp(Integer id);

    SResponse<Boolean> edit(MemberInfoUpdateDto updateDto);

    MallMemberInfoVo getMemberInfo(Integer memberId);

}
